cmake_minimum_required(VERSION 3.15)

project(useMylib )

# 1. 方法1
# include_directories("../install/linux64_dbg/include")
# list(APPEND CMAKE_PREFIX_PATH "../install/linux64_dbg")# 使得find能够找到MylibConfig.cmake

# 2. 方法2 可以通过反复设置CMAKE_LIBRARY_DIR来确定find_package的位置
set(CMAKE_LIBRARY_DIR "../install/linux64_dbg")

find_package(Mylib REQUIRED)


add_executable(useMylib demo.cpp)

TARGET_LINK_LIBRARIES(useMylib Mylib)



